package com.atguigu.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author:朱思博
 * @date:2021/5/5-{19:51}
 */
@Controller
public class ThymeleafController {
    @GetMapping("/thymeleaf")
    public String helloWorld(Model model) {
        model.addAttribute("msg","你好Thymeleaf");
        model.addAttribute("link","http://www.baidu.com");
        return "success";
    }
}
